<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>View Ticket</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        h1 {
            text-align: center;
            color: #333;
            width: 100%;
        }
        table {
            width: 80%; /* 设置表格宽度为页面宽度的80% */
            border-collapse: collapse;
            margin: 20px auto;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            overflow: hidden;
        }
        th, td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        th {
            background-color: #4CAF50;
            color: white;
        }
        tr:hover {
            background-color: #f5f5f5;
        }
        .navbar {
            margin-bottom: 20px;
            text-align: center;
            width: 100%;
        }
        .navbar a {
            margin: 0 10px;
            text-decoration: none;
            color: #007bff;
            font-weight: bold;
        }
        .navbar a:hover {
            text-decoration: underline;
        }
        .return-button {
            padding: 10px 20px;
            background-color: #007BFF;
            color: white;
            border: none;
            cursor: pointer;
            margin-top: 20px;
        }
        .return-button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<div class="navbar">
    <a href="{{ url_for('dashboard') }}">Dashboard</a>
</div>
    <h1>工单明细</h1>
    <table>
        <tbody>
            <tr>
                <th>ID</th>
                <td>{{ ticket.id }}</td>
            </tr>
            <tr>
                <th>标题</th>
                <td>{{ ticket.name }}</td>
            </tr>
            <tr>
                <th>内容</th>
                <td>{{ ticket.content }}</td>
            </tr>
        </tbody>
    </table>
    <button class="return-button" onclick="window.history.back()">返回</button>
</body>
</html>